<!DOCTYPE html>
<html>
<head>
    <!-- start 页面直出变量 -->
    
    <!-- end 页面直出变量 -->
    <meta charset="UTF-8">
    <title>购物车</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="robots" content="all">
    <meta name="googlebot" content="all">
    <meta name="baiduspider" content="all">
    <meta http-equiv="mobile-agent" content="format=wml; url=http://m.qidian.com/book/showbook.aspx?bookid=1003249295">
    <meta http-equiv="mobile-agent" content="format=xhtml; url=http://m.qidian.com/book/showbook.aspx?bookid=1003249295">
    <meta http-equiv="mobile-agent" content="format=html5; url=http://m.qidian.com/book/showbook.aspx?bookid=1003249295">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="renderer" content="webkit" />
    <meta name="csrf-token" content="{{ csrf_token() }}">
 
    <!-- start speedTimer[var, zero] -->
   

    <link rel="shortcut icon" type="image/x-icon" href="//qidian.gtimg.com/qd/favicon/qd_icon.0.2.ico">
    <link rel="Bookmark" type="image/x-icon" href="//qidian.gtimg.com/qd/favicon/qd_icon.0.2.ico">

    
    
     <!-- 购物车 -->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <meta name="keywords" content="淘宝购物车代码,购物车代码" /> 
    <meta name="description" content="js购物车代码_淘宝加入购物车代码_淘宝购物车代码。" /> 
    <link rel="stylesheet"  href="/HomeCss/css-gwc/styles.css" /> 
    <script type="text/javascript" src="/HomeCss/js-gwc/demo.js"></script> 
    
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    
    <meta name="keywords" content="仿京东商城收货地址订单页面模板" />
    <meta name="description" content="仿京东商城收货地址订单页面模板。" />
    <link rel="stylesheet" type="text/css" href="/HomeCss/css-dd/style.css">
    <link rel="stylesheet" type="text/css" href="/HomeCss/css-dd/css.css" />
</head>
<body>

    <!-- start 通用body层 -->
    <!-- start 微信分享小图标 -->
    
    <!-- end 微信分享小图标 -->
    <!-- end 通用body层 -->

    <div class="wrap">
    

    <!-- start 固定导航条 样式和首页不同，非跟随页面滚动 -->
    
    <!-- start 固定顶部导航条 -->
    <div id="top">
      <div id="top_main">
        <ul class="topu">
          <li>
            <div class="xing">
            </div>
            <a href="#">收藏商城</a>
          </li>
        </ul>
        <div id="hello">
          <span>您好，欢迎来到商城！
      <a href="login.html">[登陆]</a><a href="login.html">[免费注册]</a>
      </span>
        </div>
        <div class="topright">
          <ul>
            <li>
              <div class="cun">
                <a href="#">我的订单</a>
              </div>
            </li>
            <li class="kefu">
              <div class="cun">
                <div class="a1">
                  <div class="kefuhide">
                    <span>客户服务</span>
                    <div class="downjian1">
                    </div>
                    <ul>
                      <li><a href="#">帮助中心</a></li>
                      <li><a href="#">售后服务</a></li>
                      <li><a href="#">在线客服</a></li>
                      <li><a href="#">投诉中心</a></li>
                      <li><a href="#">客服邮箱</a></li>
                    </ul>
                  </div>
                </div>
              </div>
            </li>
            <li class="wangzhan">
              <div class="cun">
                <span>网站导航</span>
                <div class="downjian1">
                </div>
              </div>
              <div class="wangzhanhide">
                <div class="tese">
                  <span>特色栏目</span>
                </div>
                <div class="tesemain">
                  <a href="#">商城通信</a>
                  <a href="#">校园之星</a>
                  <a href="#">视频购物</a>
                  <a href="#">商城社区</a>
                  <a href="#">在线读书</a>
                  <a href="#">装机大师</a>
                  <a href="#">商城E卡　</a>
                  <a href="#">家装城</a>
                  <a href="#">搭配购　</a>
                  <a href="#">我喜欢　</a>
                  <a href="#">游戏社区</a>
                </div>
                <div class="tese">
                  <span>企业服务</span>
                </div>
                <div class="tesemain1">
                  <a href="#">企业采购</a>
                  <a href="#">办公直通车</a>
                </div>
                <div class="tese">
                  <span>旗下网站</span>
                </div>
                <div class="tesemain2">
                  <a href="#">English Site</a>
                </div>
              </div>
            </li>
          </ul>
        </div>
      </div>
    </div>
  


 

    <!-- 购物车 -->
  <form action="{{url('/cart/update')}}" method="post">
   <div class="catbox"> 
    <table id="cartTable"> 
     <thead> 
      <tr> 
       <th><label><input class="check-all check" type="checkbox"  />&nbsp;全选</label></th> 
       <th>商品</th> 
       <th>单价</th> 
       <th>数量</th> 
       <th>小计</th> 
       <th>操作</th> 
      </tr> 
     </thead> 
     <tbody> 

      @foreach($carts as $k => $v)
      <tr> 
        
       <td class="checkbox" ><input class="check-one check" type="checkbox" /></td> 
       <td class="goods"><img src="{{asset($v->gpic)}}" alt="" /><span>{{$v->gname}}</span></td> 
         
       <td class="price">{{$v->price}}</td> 
       <td class="count">
         <span class="reduce">-</span>
         <input class="count-input" type="text" name="num[]" value="{{$v->num}}" />
         
         <span class="add">+</span></td> 
       <td class="subtotal">{{$v->price * $v->num}}</td> 
       <td class="operation"><a href="/cart/delete?cid={{$v->cid}}"><span class="delete">删除</span></a></td> 
        <input type="hidden" name="cid[]" value="{{$v->cid}}">      
      </tr> 
      @endforeach
      

     </tbody> 
    </table> 
    {{csrf_field()}}
    <div class="foot" id="foot"> 
     <label class="fl select-all"><input type="checkbox" class="check-all check" />&nbsp;全选</label> 
     <a class="fl delete" id="deleteAll" href="javascript:;"></a> 
     <div class="fr closing">
      <a href="/home/order"><button>结 算</button></a>
     </div> 
     <div class="fr total">
      合计：￥
      <span id="priceTotal">0.00</span>
     </div> 
     <div class="fr selected" id="selected">
      已选商品
      <span id="selectedTotal">0</span>件
      
     </div> 
     <div class="selected-view"> 
      <div id="selectedViewList" class="clearfix"> 
       <div>
        <img src="/HomeCss/images-gwc/1.jpg" />
        <span>取消选择</span>
       </div> 
      </div> 
      <span class="arrow">◆<span>◆</span></span> 
     </div> 
    </div> 
   </div>   
  </form>
       <div class="footer">
       <!--start 友情链接-->
    
   </div>

   <script>
   (function(){
       var bp = document.createElement('script');
       var curProtocol = window.location.protocol.split(':')[0];
       if (curProtocol === 'https') {
           bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
       }
       else {
           bp.src = 'http://push.zhanzhang.baidu.com/push.js';
       }
       var s = document.getElementsByTagName("script")[0];
       s.parentNode.insertBefore(bp, s);
   })();
   </script>

  
</body>
</html>